﻿using System;
using System.Net;
using System.Runtime.Serialization;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Yek.BI.Data
{
    [DataContract]
    public class Field
    {
        [DataMember(Name = "sort")]
        public int Sort { get; set; }

        [DataMember(Name = "name")]
        public string Name { get; set; }

        [DataMember(Name = "type")]
        public string Type { get; set; }

        [DataMember(Name = "codeType")]
        public string CodeType { get; set; }

        [DataMember(Name = "note")]
        public string Note { get; set; }

        [DataMember(Name = "comment")]
        public string Comment { get; set; }

        [DataMember(Name = "enum")]
        public Enum[] Enum { get; set; }


        [DataMember(Name = "loop")]
        public Field[] Loop { get; set; }

    }

    [DataContract]
    public class Enum
    {
        [DataMember(Name = "key")]
        public String Key { get; set; }

        [DataMember(Name = "value")]
        public String Value { get; set; }

    }

   
}
